from tortoise import fields

from base.base_models import BaseModel


class FileServer(BaseModel):
    filename = fields.CharField(max_length=255)
    filesize = fields.BigIntField(default=0, null=True)
    file_url = fields.CharField(max_length=255)
    file_hash = fields.CharField(max_length=255, null=True)

    class Meta:
        table = "tb_fileserver_files"
